@import './public.scss';
@import './publicHeader.scss';
@import './publicFooter.scss';

.w{
    width: 1220px;
}
main{
    nav{
        background-color: #f6f6f6;
        height: 38px;
        border-bottom: 1px solid #e2e2e2;
        .nav-warp{
            display: flex;
            align-items: center;
            width: 1220px;
            overflow: hidden;
            margin: 0 auto;
            .shopName{
                display: none;
                font-size: 20px;
                color: rgba(0,0,0,.5);
                margin-right: 110px;
            }
            .shopParams{
                display: flex;
                align-items: center;
                margin-top: 12px;
                >li{
                    font-size: 12px;
                    margin-right: 30px;
                    a{
                        color: #7b7b7b;
                    }
                }
            }
        }
    }
    .content{
        overflow: hidden;
        margin-top: 50px;
        .left{
            float: left;
            position: relative;
            width: 527px;
            margin-right: 83px;
            .middImg{
                position: relative;
                border: 1px solid #666;
                box-sizing: border-box;
                width: 527px;
                height: 527px;
                img{
                    width: 100%;
                    height: 100%;
                }
                .mask{
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    left: 0;
                    top: 0;
                    &:hover{
                        cursor: pointer;
                    }
                }
                .block{
                    position: absolute;
                    display: none;
                    left: 0;
                    top: 0;
                    width: 50%;
                    height: 50%;
                    background-color: rgba(255,0,0,.5);
                }
            }
            .bigImg{
                position: absolute;
                box-sizing: border-box;
                border: 1px solid #666;
                overflow: hidden;
                display: none;
                right: -527px;
                top: 0;
                width: 527px;
                height: 527px;
                background-color: #fff;
                img{
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 200%;
                    height: 200%;
                }
            }
            .smImg-warp{
                width: 527px;
                height: 105px;
                >ul{
                    height: 100%;
                    margin: 0;
                    display: flex;
                    justify-content: space-around;
                    align-items: center;
                    >li{
                        cursor: pointer;
                        flex-shrink: 0;
                        width: 95px;
                        height: 95px;
                        &.active{
                            border: 3px solid orange;
                        }
                        img{
                            width: 100%;
                            height: 100%;
                        }
                    }
                }
            }
        }
        .right{
            float: left;
            width: 610px;
            .title{
                color: #666;
                font-size: 12px;
            }
            .visibility{
                visibility: hidden;
            }
            >span{
                display: inline-block;
                margin: 20px 0;
                font-size: 12px;
                color: #999;
            }
            hr{
                margin-bottom: 30px;
            }
            >.youhui{
                >span{
                    float: left;
                }
                >.youhuiInfo{
                    float: left;
                    color: #808080;
                    font-size: 12px;
                    span{
                       display: inline-block;
                       padding: 0 8px;
                       background-color: #fce9e8;
                       color: #d44d43;
                       border:1px solide red
                    }
                }
            }
            >.choose{
                span{
                    display: inline-block;
                    font-size: 18px;
                    border: 1px solid #e5e5e5;
                    padding: 10px 14px;
                    border-radius: 5px;
                    margin-right: 10px;
                    cursor: pointer;
                    &.active{
                        font-weight: bold;
                        border: 1px solid #6a8fe6;
                    }
                }
                h4{
                    float: left;
                    width: 85px;
                    margin-top: 15px;
                }
                .styles{
                    float: left;
                }
                .color{
                    border-bottom: 1px #e5e5e5 dotted;
                    padding-bottom: 30px;
                    width: 525px;
                    margin-bottom: 30px;
                }
            }
            .fuwushuoming{
                >span{
                    margin-right: 30px;
                }
                p{
                    font-size: 12px;
                    color: #999;
                }
            }
            .baoxiu{
                >span{
                    margin-top: 20px;
                }
                >div{
                    width: 530px;
                    margin-left: 30px;
                    >.baoxiu1{
                        border: 1px solid #e5e5e5;
                        box-sizing: border-box;
                        border-radius: 10px;
                        margin-bottom: 20px;
                        padding: 10px 18px;
                        .left2{
                            h3{
                                margin-bottom: 10px;
                                font-size: 16px;
                            }
                            span{
                                font-size: 12px;
                                color: #999;
                            }
                        }
                        .right2{
                            color: #d45344;
                        }
                    }
                }
            }
        }
    }
}
.cartbottom{
    position: fixed;
    width: 100%;
    bottom: 0;
    border-top: 1px solid #e8e8e8;
    height: 61px;
    background-color: #fafafa;
    .addActive{
        position:absolute;
        display: none;
        width: 118px;
        height: 38px;
        border: 1px solid #dcba67;
        background-color:#f5dfa0;
        left: 50%;
        top: -60px;
        transform: translateX(-50%);
        border-radius: 7px;
        line-height: 38px;
        text-align: center;
        font-size: 14px;
        color: green;
    }
    .content{
        display: flex;
        justify-content: space-between;
        .left{
            height:61px;
            display: flex;
            font-size: 12px;
            color: #707070;
            padding-top: 20px;
            >span{
                margin-right: 20px;
                &.price{
                    font-size: 14px;
                    font-weight: 700;
                }
            }
            >.info{
                >p{
                    margin: 0;
                }
            }
        }
        .right{
            height:61px;
            display: flex;
            align-items: center;
            >.price{
                font-size: 20px;
                color: #d44d44;
                font-weight: 700;
            }
            >button{
                width: 118px;
                height: 38px;
                border: 1px solid #dbdbdb;
                border-radius:5px;
                outline: none;
                cursor: pointer;
                font-size: 14px;
                margin-left: 15px;
                &.nowBuy{
                    >a{
                        display: block;
                        height: 100%;
                        line-height: 38px;
                        color: #646464;
                    }
                    &:hover{
                        background-color:#cfcbcb;
                    }
                }
                &.addCart{
                    color: #fff;
                    background-color: #6383c6;
                }
            }
        }
    }
}

